package Theead;

public class Demo {

	public static void main(String[] args) {
		ThreadDemo td1 = new ThreadDemo();
		ThreadDemo td2 = new ThreadDemo();
		td1.start();
		td2.start();
		while (true) {
			System.out.println("我是主线程");
			try {
				Thread.sleep(500);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}

	}

}
